<?php
/**
 * Copyright (C) Alibaba Cloud Computing
 * All rights reserved
 */

require_once realpath(dirname(__FILE__) . '/Request.php');

/**
 * The request used to get cursor by fromTime or begin/end mode
 *
 * @author log service dev
 */
class Aliyun_Log_Models_GetLogstoreIndexRequest extends Aliyun_Log_Models_Request
{

    /**
     * @var string logstore name
     */
    private $logstore;

    /**
     * Aliyun_Log_Models_GetCursorRequest Constructor
     * @param string $project
     *            project name
     * @param string $logstore
     *            logstore name
     * @param string $shardId
     *            shard id
     * @param string $mode
     *            query mode,value must be 'begin' or 'end'
     * @param string $fromTime
     *            query by from time,unix_timestamp
     */
    public function __construct($project, $logstore)
    {
        parent::__construct($project);
        $this->logstore = $logstore;
    }

    /**
     * Get logstore name
     *
     * @return string logstore name
     */
    public function getLogstore()
    {
        return $this->logstore;
    }
}
